package com.un.ebs.order.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import org.springframework.stereotype.Component;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @since 2020-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Component
@TableName("tb_order_attr")
public class OrderAttr extends Model<OrderAttr> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    private String orderItemId;

    private String orderId;

    private String attrId;

    private String attrName;

    private String fileName;

    private String fileUrl;

    private Boolean isSubmit;

    private String cancelSubmitRemark;

    @TableField(fill = FieldFill.INSERT)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    private String createAtName;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private String updateAt;

    private String updateAtName;

    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}